<template>
  <div id="app">
    <Header />
    <div class="wrapper">
      <AdminLayout />
    </div>
    <FooterCom />
  </div>
</template>

<script setup>
import AdminLayout from './views/admin/layout.vue';
import FooterCom from './components/FooterCom.vue';
import Header from './components/Header.vue';
</script>

<style scoped>
#app {
  height: 100vh;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

.wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.sidebar {
  width: 200px;
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  border-right: 1px solid #34495e;
  transition: all 0.3s ease;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 200px; /* 确保主内容区域在侧边栏右侧 */
  padding: 10px;
  height: 100%;
}
</style>